home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / nt / ntreskit.exe / FIFO.CMD < prev    next >
OS/2 REXX Batch file  |  1993-09-12  |  727b  |  43 lines

  1. @echo off
  2.  
  3. if "X%1X"=="X/?X" goto usage
  4.  
  5. if %1#==# goto usage
  6. if %1#==/help# goto usage
  7.  
  8. if %1#==ON# goto fifo_on
  9. if %1#==on# goto fifo_on
  10. if %1#==On# goto fifo_on
  11.  
  12. if %1#==OFF# goto fifo_off
  13. if %1#==Off# goto fifo_off
  14. if %1#==off# goto fifo_off
  15.  
  16. goto usage
  17.  
  18. :fifo_on
  19.  
  20. regini fifo_on.ini
  21. if errorlevel 1 goto error
  22. echo.
  23. echo FIFO is ON
  24. goto end
  25.  
  26. :fifo_off
  27. regini fifo_off.ini
  28. if errorlevel 1 goto error
  29. echo.
  30. echo FIFO is OFF
  31. goto end
  32.  
  33. :error
  34. echo Make sure REGINI.EXE is in your path and you have administrator privledges
  35. goto end
  36.  
  37. :usage
  38. echo Enables or disables the use of FIFO UART's with RAS
  39. echo "Usage - FIFO [ ON | OFF ]"
  40. echo Make sure that REGINI.EXE is in your path.
  41.  
  42. :end
  43.